package com.finance_provider.service.impl;

import com.entity.Payment;
import com.finance_provider.mapper.PaymentMapper;
import com.finance_provider.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/23 9:21
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentMapper paymentMapper;

    @Override
    public Boolean addPayment(Payment payment) {
        return paymentMapper.addPayment(payment);
    }

    @Override
    public Boolean updatePayment(Payment payment) {
        return paymentMapper.updatePayment(payment);
    }

    @Override
    public List<Payment> queryPayment(Payment payment) {
        return paymentMapper.queryPayment(payment);
    }

    @Override
    public Payment queryPaymentId(Long id) {
        return paymentMapper.queryPaymentId(id);
    }

    @Override
    public Boolean deletePaymentId(Long id) {
        return paymentMapper.deletePaymentId(id);
    }
}
